import request from '@/utils/request'

export function listAnimals(query) {
  return request({
    url: '/animals/selectAnimalsList',
    method: 'get',
    params: query
  })
}

export function selectByName(data) {
  return request({
    url: '/animals/selectAnimalsListByName',
    method: 'post',
    data:data
  })
}

export function addAnimals(data) {
  return request({
    url: '/animals/addAnimals',
    method: 'post',
    data:data
  })
}

export function editAnimals(data) {
  return request({
    url: '/animals/editAnimals',
    method: 'post',
    data:data
  })
}

export function delAnimals(data) {
  return request({
    url: '/animals/delAnimals',
    method: 'post',
    data:data
  })
}
